<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <?php use_helper('jQuery') ?>
  </head>
  <body onload="register_live_search('<?php echo url_for('idea/index') ?>', '<?php echo url_for('ajax/getOperations') ?>');">
    <div id="header_wrapper">
      <div id="user_info">
        <?php if(!$sf_user->isAuthenticated()):?>
          <?php echo include_partial('default/login',array('form' => new sfGuardFormSignin()))?>
        <?php else:?>
           <?php echo include_partial('default/user')?>
        <?php endif?>
      </div>
      <div id="header">
        <h1> <?php echo __('What are you thinking about?') ?></h1>
        <input id="live_search" type="text" name="q"/>
      </div>
    </div>
    <div class="clear"></div>
    <div id="op" class="operation_menu_horizontal">
      <ul>
        <?php if (has_slot('sidebar')):?>
          <?php include_slot('sidebar') ?>
        <?php endif?>
      </ul>
    </div>
    <div id="content">
      <?php echo $sf_content ?>
    </div>
    <footer style="text-align: center"> alvarola at google dot com <footer>
  </body>
</html>
